
function pagination(data,url,id,method,keyword) {
	$("#paginationId").empty();
	$("#paginationId").jqPaginator({
		totalCounts:data.totalNum,
		pageSize:data.pageEachSize,
		visiblePages:4,
		first:'<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
		prev:'<li class="prev"><a href="javascript:void(0);"><i class="arrow arrow2"></i>上一页<\/a><\/li> ',
		next:'<li class="next"><a href="javascript:void(0);">下一页<i class="arrow arrow2"></i><\/a><\/li> ',
		last:'<li class="last"><a href="javascript:void(0);">末页<\/a><\/li> ',
		page:'<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li> ',
		activeClass:'active',
		onPageChange:function(currentPage,type,keyword){
			if(type=="change"){
				$.ajax({
					type:method,
					url:"http://localhost:8080/result"+url+".htm?page="+currentPage,
					dataType:"json",
					data:{"keyword":keyword},
					success:function (data) {
						getResults(data,id);
					}
				});
			}
		}
	});
}